package com.sxz.mall.product.exception;

//错误信息错误码枚举
public enum BizCodeEnum {

    /**
     * 10通用的
     * 11商品
     * 12订单
     * 13购物车
     * 14物流
     */


//    PRODUCT_UP_EXCEPTION(11001, "商品上架异常");
    UNKNOWN_EXCEPTION(10000, "系统未知异常"),
    VALID_EXCEPTION(10001, "参数格式异常");

//    VALID_EXCEPTION1(10001, "参数格式异常");



    private int code;
    private String msg;

    BizCodeEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode(){
        return code;
    }

    public String getMsg(){
        return msg;
    }
}
